<?=$load->view('right.header.php');?>
<br/>
<table class="list">
<tr>
	<td class="toolbar">
    <?=$menu[$caller['clg'][1]]['name']?> &nbsp;
    <a  class="active"  href="/artist/table.html?tpl=<?=$tpl?>&look=<?=$look?>&clg=<?=$caller['clg'][1]?>&hcs=<?=$htdocs['id']?>">已添加画家</a>
    <a href="/artist/write.html?tpl=<?=$tpl?>&clg=<?=$caller['clg'][1]?>&hcs=<?=$htdocs['id']?><?=(empty($cover)?'':'&cover=no')?>">添加画家</a>
    <input type="text" name="keyword" value="<?=$search?>" /><input type="button" value="搜索" id="search"/>
    </td>
</tr>
</table>
<br/>
<form action="<?=$basic?>" method="post">
<table class="list">
<thead>
<tr>
	<td width="60">排序</td>
	<td>编号</td>
	<td>名称</td>
	<td>添加时间</td>
	<td>操作</td>
</tr>
</thead>
<?php
foreach($artist as $key=>$value){
?>
<tr>
	<td><input type="text" name="order[<?=$value['id']?>]" value="<?=$value['sequence']?>" size="3" /></td>
	<td><?=($key+1)?></td>
	<td>[<?=$menu[$caller['clg'][1]]['name']?>]<a href="<?=$htdocs['host']?>artist.html?clg=<?=$look?>&news=<?=$value['id']?>" target="_blank"><?=$value['name']?></a></td>
	<td width="140"><?=date('Y-m-d H:i:s',$value['date'])?></td>
	<td width="140">
        <a href="/artist/write.html?tpl=<?=$tpl?>&clg=<?=$caller['clg'][1]?>&hcs=<?=$htdocs['id']?>&news=<?=$value['id']?>">编辑</a>
        <a confirm="确认删除吗？" href="/artist/locked.html?tpl=<?=$tpl?>&clg=<?=$caller['clg'][1]?>&hcs=<?=$htdocs['id']?>&news=<?=$value['id']?>">删除</a>
    </td>
</tr>
<?php
}
?>
<tr>
	<td><input type="submit" value="排序" /></td>
	<td colspan="4">
    	<div class="pagelink"><?=$pagination?></div>
    </td>
</tr>
</table>
<br />
</form>
<script>
$('#search').click(function(){
	var kw = encodeURIComponent( $('input[name=keyword]').val());
	location = '<?=$basic?>&search='+kw;
});
</script>
<?=$load->view('right.footer.php');?>